package com.sghy.xcxservice.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.sghy.xcxservice.dto.UserInfoVo;
import lombok.Data;

/**
 * room中发布的内容
 * @TableName bgb_room_content
 */
@TableName(value ="bgb_room_content",autoResultMap = true)
@Data
public class BgbRoomContent implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发布的内容
     */
    @TableField(value = "content")
    private String content;
    
    @TableField(value = "room_no")
    private String roomNo;

    /**
     * 发布的文件数组
     */
    @TableField(value = "files",typeHandler = FastjsonTypeHandler.class)
    private JSONArray files;

    /**
     * 谁上传的
     */
    @TableField(value = "u_id")
    private String uId;

    /**
     * 发布的时间
     */
    @TableField(value = "time")
    private Date time;

    /**
     * 0正常1删除
     */
    @TableField(value = "del")
    private Integer del;
    
    @TableField(exist = false)
    private UserInfoVo user;
    

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
